package com.lc.java.ai.langchain4j.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import org.springframework.context.annotation.Configuration;

/**
 * @author liuchun
 * @version 1.0
 * @date 2025/6/3 21:32
 */
@AiService(
        wiringMode = AiServiceWiringMode.EXPLICIT,
        chatModel = "openAiChatModel",
        chatMemoryProvider = "chatMemoryProvider",
        tools = "calculatorTools"
)
public interface SeparateChatAssistant {

    //@SystemMessage("请你用东北话回答我的问题")
    @SystemMessage(fromResource = "my-prompt.txt")
    String chat(@MemoryId Integer memoryId, @UserMessage String userMessage);
}
